//
//  diaryDetaileViewController.m
//  CustomDateTimePicker
//
//  Created by lanou3g on 15/7/20.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "diaryDetaileViewController.h"

@interface diaryDetaileViewController ()
@property(nonatomic,retain)NSString *labelStr;
@end

@implementation diaryDetaileViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:255/256.0 green:204/256.0 blue:204/256.0 alpha:1];
    //设置返回按钮
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[[UIImage imageNamed:@"ca1.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:self action:@selector(returnBackWrite:)];
    
        
    self.labelStr = _contactStr;
    self.view.backgroundColor = [UIColor colorWithRed:255/256.0 green:204/256.0 blue:204/256.0 alpha:1];
    UILabel *lable = [[UILabel alloc]initWithFrame:CGRectMake(50, 50, 275, 500)];
    
    lable.numberOfLines = 0;
    lable.text = _labelStr;
    [self.view addSubview:lable];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

//返回按钮事件
-(void)returnBackWrite:(UIBarButtonItem *)bt{
    [self.navigationController popViewControllerAnimated:YES];
}


@end
